let express = require('express');
let router = express.Router();
let userController = require('../controllers/userController');

// 处理所有与用户有关的 API

router.get('/', function (req, res, next) {
  res.send('respond with a resource');
});

router.post('/login', userController.login);
router.get('/quit', userController.quit);

module.exports = router;
